package org.example.controller;

import cn.lingyangwl.framework.core.response.Resp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author shenguangyang
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @GetMapping("/get")
    public Resp<String> get() {
        return Resp.ok(UUID.randomUUID().toString());
    }

    @GetMapping("/findOrderByUserId/{id}")
    public String findOrderByUserId(@PathVariable(value = "id") String  userId) {
        return UUID.randomUUID()+ "@" + userId;
    }
}
